<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/ui-input.css">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-color.css">
        <script src="js/zy_control.js"></script>
        <script src="js/zy_click.js"></script>
        <script src="js/commonCity.js"></script>
        <script src="js/zy_json.js"></script>
        <style type="text/css">
        
            .ub-hor {
                -webkit-box-orient:horizontal;
                box-orient:horizontal;
            }
            .return {
                background-image: url(images/delaySchedule1.png);
                width: 1.25em;
                height: 1.25em;
            }
            .top_search {
                background: #f8f8f8;
            }
            .top_search_box {
                padding: 0.4em;
                border-bottom: solid #cccccc 1px;
            }
            .zv_b {
                border: 1px solid #d7d7d7;
            }
            .t-bla {
                color: #00000f;
            }
            .c-wh {
                background-color: #FFF;
            }
            .search_img {
                background: url(images/search.png) no-repeat;
                background-size: 98%;
                height: 1.5em;
                margin: 0.5em 0 0 0.5em;
            }
            
            .t-wh
            {
                color:white;
            }
        </style>
    </head>
    <body class="c-wh" id="body" ontouchstart>
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
            <div id="header" class="uh t-wh ub bgc">
                <div class="umw4 ub ub-ac ub-pc" id="nav-left" onclick="closeFatherWindow()">
                    <div class="ub-img return"></div>
                </div>
                <h1 class="ut ub-f1 ulev0 ut-s tx-c" tabindex="0">航站查询</h1>
                <div class="umw4 ub ub-ac ub-pc" ontouchstart="zy_touch('btn-act')" onclick="">
                    <!--插入按钮控件-->
                </div>
            </div>
            <div class="top_search" id="search_box">
                <div class="top_search_box">
                    <div class="c-wh ub t-bla ulab ub-ac uc-a1 zv_b">
                        <div class="ub-img umw1 search_img"></div>
                        <div class="ub-f1 c-wh uinput uinn4">
                            <input placeholder="机场三码/名称" type="text" id="search_name" class="uc-a1" onKeyup="javascript:search_airport()" style="line-height: inherit;font-size: 0.9em;">
                        </div>
                    </div>
                </div>
            </div>
            <!--header结束--><!--content开始-->
            <div id="airport_select_content" class="ub-f1 tx-l">
                
            </div>
            <!--content结束-->
 
        </div>
    </body>
    <script> 
        zy_init();
        window.uexOnload = function(type){
            if (!type) {
                zy_con("airport_select_content", "airport_select_content.html", 0, $$("header").offsetHeight+$$("search_box").offsetHeight);
                uexWindow.setReportKey(0, 1);
                uexWindow.onKeyPressed = function(keyCode){
                    if (keyCode == 0){
                         closeFatherWindow();
                    } 
                }
            }
        }
       
      
      /**
       *设置选择后的机场信息 
       */
     // function setAirPort(name,code){
          // uexWindow.evaluatePopoverScript("today","content","setAirPort('"+name+"','"+code+"')");
         // uexWindow.evaluateMultiPopoverScript('today','contents','today',"setAirPort('"+name+"','"+code+"')");
          //uexWindow.evaluateMultiPopoverScript('today','contents','flag_0()');
     // }
      
      /**
       *查询 
       */
     function search_airport(){
           var search_name = $$("search_name").value;
           uexWindow.evaluatePopoverScript("airport_select","airport_select_content","searchAllAirport('"+search_name+"')");
           //uexWindow.evaluatePopoverScript("airport_select","airport_select_content","queryAllAirport('"+search_name+"')");
      }
      function closeFatherWindow(name,code){
          uexWindow.evaluatePopoverScript("today","content","setAirPort('"+name+"','"+code+"')");
          //uexWindow.evaluatePopoverScript("today","content","setAirPort()");
          
          uexWindow.close(-1);  
          //appcan.window.close(-1);
      }
    </script>
</html>
